package com.wangdong.mijiqiqi.twotype;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.wangdong.mijiqiqi.R;


public class TwoActivity extends BaseTwoActivity {

    private TextView tv_one;
    private TextView tv_two;
    private TextView tv_three;
    private Button bt_dialog;
    private Button bt_guanbi;
    private Button bt_back;


    @Override
    protected void initUI() {
        setContentView(R.layout.activity_two);
        tv_one = (TextView)findViewById(R.id.tv_one);
        tv_two = (TextView)findViewById(R.id.tv_two);
        tv_three = (TextView)findViewById(R.id.tv_three);
        bt_dialog =(Button)findViewById(R.id.bt_dialog);
        bt_guanbi = (Button)findViewById(R.id.bt_cenleshuru);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        //显示进度条dialog
        showProgressDialog("网络加载中...","请稍等!",true);
        tv_one.setText(getStringMethod(R.string.copyright));
        tv_two.setText(getStringMethod(R.string.p2refresh_doing_head_refresh));
        tv_three.setText(getStringMethod(R.string.p2refresh_refresh_lasttime));


    }

    @Override
    protected void initListener() {
        bt_dialog.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (verifyClickTime()){//防止0.5秒内置重复点击

                }
            }
        });
        bt_guanbi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (verifyClickTime()){//防止0.5秒内置重复点击
                    closeInputMethod();//收回键盘
                }

            }
        });


    }
}
